#include "SelectorAlgorithm.h"
#include <iostream>

double SelectorAlgorithm::getSim(const FilePairType& file_pair) const {

    if (file_pair.first->mime_type == "image" && file_pair.second->mime_type == "image") {
        return img_compare_alg_->getSim(file_pair);
    }

    return approx_alg_->getSim(file_pair);
}